package com.example.com.order.fegin;

import com.example.com.order.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "nacos-stock")
public interface StockFeignService {
    @PostMapping("/stock/reduceStock")
    String reduceStock(@RequestParam("productId") Integer productId);
//                      ,@RequestParam("count") Integer count);
}
